<script type="text/javascript">
var debugMsgs = '';
<{foreach from=$messages item=message}>
debugMsgs += '<{if $message.type = 'compile'}>编译<{else}>载入<{/if}>模板: <{$message.file}>, 耗时: <{$message.time}> 秒\r\n';
<{/foreach}>
alert(debugMsgs);
</script>